<?php
return array(
	'defaultScope' => array(
		'condition' => "object_type = 'OrderHotel'",
	),
	
	'relations' => array(
		'profile' => array(CActiveRecord::HAS_ONE, 'OrderAddonHotel', 'order_id'),
		'travelers' => array(CActiveRecord::HAS_MANY, 'OrderTravelerInfo', 'order_id'),
		'addon' => array(CActiveRecord::HAS_ONE, 'OrderAddonHotel', 'order_id')
	),
	'cascade' => array(
		'travelers', 'addon'
	),
	
	'attributeLabels' => array(
		'travelers' => '房客信息',
	),
	
	'_import' => array(
		array('*', 'models.Order//*'),
	),
);